package com.lb.testservice.service.impl;


import com.lb.testdao.mapper.CommodityMapper;
import com.lb.testservice.service.CommoditySerivce;
import com.lb.tetcommon.bean.Commodity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommoditySerivceImpl implements CommoditySerivce {

    @Resource
    private CommodityMapper commodityMapper;


    public int deleteByPrimaryKey(Integer cno) {
        return commodityMapper.deleteByPrimaryKey(cno);
    }

    public Commodity selectByPrimaryKey(Integer cno) {
        return commodityMapper.selectByPrimaryKey(cno);
    }

    public List<Commodity> selectAll() {
        return commodityMapper.selectAll();
    }

    public int updateByPrimaryKey(Commodity record) {
        return commodityMapper.updateByPrimaryKey(record);
    }

    public int updateByPrimaryKeySelective(Commodity record) {
        return commodityMapper.updateByPrimaryKeySelective(record);
    }

    public int insertSelective(Commodity record) {
        return commodityMapper.insertSelective(record);
    }

    public int insert(Commodity record) {
        return 0;
    }
}
